<?php namespace Home\Controller;
use Hdphp\Controller\Controller;
class IndexController extends Controller{
	
	public function index(){
		$data = Db::table('article')
				->join('category','category_cid','=','cid')
				->get();
		$tagModel = new \Common\Model\Tag;
		$data = $tagModel->getTag($data);
		View::with('data',$data);
		View::make();
	}
	
	
}




 ?>